package io.github.mayubao.kotlintest

import org.junit.Assert.assertNotNull
import org.junit.Test
import java.net.URI

class Day26_ExtendMethod{


    @Test
    fun testExtendMethod(){
        val url = "http://baidu.com".toURI()
        println(url)
        assertNotNull(url)
    }

    inline fun String.toURI() : URI = URI.create(this)
}